package com.ruoyi.web.controller.mall.shopExpressDetails.service.impl;

import com.ruoyi.web.controller.mall.shopExpressDetails.domain.ShopExpressDetails;
import com.ruoyi.web.controller.mall.shopExpressDetails.mapper.ShopExpressDetailsMapper;
import com.ruoyi.web.controller.mall.shopExpressDetails.service.IShopExpressDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 快递单详情Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-01-18
 */
@Service
public class ShopExpressDetailsServiceImpl implements IShopExpressDetailsService 
{
    @Autowired
    private ShopExpressDetailsMapper shopExpressDetailsMapper;

    /**
     * 查询快递单详情
     * 
     * @param id 快递单详情ID
     * @return 快递单详情
     */
    @Override
    public ShopExpressDetails selectShopExpressDetailsById(String id)
    {
        return shopExpressDetailsMapper.selectShopExpressDetailsById(id);
    }

    /**
     * 查询快递单详情列表
     * 
     * @param shopExpressDetails 快递单详情
     * @return 快递单详情
     */
    @Override
    public List<ShopExpressDetails> selectShopExpressDetailsList(ShopExpressDetails shopExpressDetails)
    {
        return shopExpressDetailsMapper.selectShopExpressDetailsList(shopExpressDetails);
    }

    /**
     * 新增快递单详情
     * 
     * @param shopExpressDetails 快递单详情
     * @return 结果
     */
    @Override
    public int insertShopExpressDetails(ShopExpressDetails shopExpressDetails)
    {
        return shopExpressDetailsMapper.insertShopExpressDetails(shopExpressDetails);
    }

    /**
     * 修改快递单详情
     * 
     * @param shopExpressDetails 快递单详情
     * @return 结果
     */
    @Override
    public int updateShopExpressDetails(ShopExpressDetails shopExpressDetails)
    {
        return shopExpressDetailsMapper.updateShopExpressDetails(shopExpressDetails);
    }

    /**
     * 删除快递单详情对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteShopExpressDetailsByIds(String[] ids)
    {
        return shopExpressDetailsMapper.deleteShopExpressDetailsByIds(ids);
    }

    /**
     * 删除快递单详情信息
     * 
     * @param id 快递单详情ID
     * @return 结果
     */
    @Override
    public int deleteShopExpressDetailsById(String id)
    {
        return shopExpressDetailsMapper.deleteShopExpressDetailsById(id);
    }
}
